<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $user = User::create([
            'user_name' => 'dskozin',
            'email' => 'dskozin@mail.ru',
            'password' => Hash::make('fsgtxsec'),
        ]);

        $user->profile()->create();
    }
}
